{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_gjw/template/public/ygcss.css">
<style type="text/css">
    .ygmargin{margin-top: 10px;color: #999;}
    .tmore a:first-child{background-color:#ffc000;color:#fff;padding:5px 12px;}
    .tmore a:first-child:hover{background-color:#eea236;}
    .tmore a:nth-child(2) i{padding:7px 15px;}
    .tmore a:last-child{background-color:#44abf7;color:#fff;padding:5px 12px;}
    .tmore a:last-child:hover{background-color:#337ab7;}
    .fa-angle-down{display:none;}
    .tcate{border:1px solid #eee;border-radius:3px;height:36px;margin-bottom:5px;}
    .tcate div:first-child{float:left;height:36px;line-height:36px;}
    .tcate img{float:left;width:40px;height:30px;border:1px solid #ccc;margin:2px;}
    .tcate h6:hover{font-weight:700;cursor:pointer;}
    .tcate div:first-child div{float:left;margin-top:-2px;}
    .tcate div:first-child div span:first-child{font-size:20px;padding:0px 10px;margin:0px 5px;cursor:pointer;}
    .tcate div:first-child div span:last-child{font-size:20px;padding:0px 10px;margin:0px 5px;cursor:pointer;}
    .tcate div:first-child h6{float:left;}
    .tcate div:last-child{float:right;height:36px;line-height:36px;margin-top:-2px;}
    .minus{}
    .plus{display:none;}
    .main{margin:20px;}
</style>
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>    
    <li class="active"><a href="javascript:void(0);">分类列表</a></li>
</ul>
<div class="main">
    <div class="panel panel-default ygdefault">
            <div class=" wyheader tmore">
                <a href="{php echo $this->createWebUrl('dbcatelevel', array('id' => $row['id']))}" class="storespan btn btn-xs">设置分类层级</a>
                {if $catelevel['dbcate']>1}
                <a class="storespan btn btn-xs"><i class="fa fa-angle-up">折叠所有</i><i class="fa fa-angle-down">展开所有</i></a>
                {/if}
                {if $catelevel['dbcate']>=1}
                <a href="{php echo $this->createWebUrl('adddbcate')}" class="storespan btn btn-xs">添加新分类</a>
                {/if}
            </div>
            <div class="panel-body">
                {$cates}
                <!-- <ol>
                    <li>
                        <div class="form-group tcate">
                            <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                            <div>
                                <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                    <span class="fa fa-plus"></span>
                                    <span class="bianji">添加<span class="arrowdown"></span>
                                    </span>
                                
                                </a>
                                <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                    <span class="fa fa-pencil"></span>
                                    <span class="bianji">编辑<span class="arrowdown"></span>
                                    </span>
                                
                                </a>
                                <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                    <span class="fa fa-trash-o"></span>
                                    <span class="bianji">删除<span class="arrowdown"></span>
                                    </span>
                                </a>
                            </div>
                        </div>
                        <ol>
                            <li>
                                <div class="form-group tcate">
                                    <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                                    <div>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-plus"></span>
                                            <span class="bianji">添加<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-pencil"></span>
                                            <span class="bianji">编辑<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                            <span class="fa fa-trash-o"></span>
                                            <span class="bianji">删除<span class="arrowdown"></span>
                                            </span>
                                        </a>
                                    </div>
                                </div>

                                <ol>
                                    <li>
                                        <div class="form-group tcate">
                                            <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                                            <div>
                                                <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                                    <span class="fa fa-plus"></span>
                                                    <span class="bianji">添加<span class="arrowdown"></span>
                                                    </span>
                                                
                                                </a>
                                                <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                                    <span class="fa fa-pencil"></span>
                                                    <span class="bianji">编辑<span class="arrowdown"></span>
                                                    </span>
                                                
                                                </a>
                                                <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                                    <span class="fa fa-trash-o"></span>
                                                    <span class="bianji">删除<span class="arrowdown"></span>
                                                    </span>
                                                </a>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="form-group tcate">
                                            <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                                            <div>
                                                <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                                    <span class="fa fa-plus"></span>
                                                    <span class="bianji">添加<span class="arrowdown"></span>
                                                    </span>
                                                
                                                </a>
                                                <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                                    <span class="fa fa-pencil"></span>
                                                    <span class="bianji">编辑<span class="arrowdown"></span>
                                                    </span>
                                                
                                                </a>
                                                <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                                    <span class="fa fa-trash-o"></span>
                                                    <span class="bianji">删除<span class="arrowdown"></span>
                                                    </span>
                                                </a>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="form-group tcate">
                                            <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                                            <div>
                                                <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                                    <span class="fa fa-plus"></span>
                                                    <span class="bianji">添加<span class="arrowdown"></span>
                                                    </span>
                                                
                                                </a>
                                                <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                                    <span class="fa fa-pencil"></span>
                                                    <span class="bianji">编辑<span class="arrowdown"></span>
                                                    </span>
                                                
                                                </a>
                                                <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                                    <span class="fa fa-trash-o"></span>
                                                    <span class="bianji">删除<span class="arrowdown"></span>
                                                    </span>
                                                </a>
                                            </div>
                                        </div>
                                    </li>
                                </ol>
                            </li>
                            <li>
                                <div class="form-group tcate">
                                    <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                                    <div>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-plus"></span>
                                            <span class="bianji">添加<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-pencil"></span>
                                            <span class="bianji">编辑<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                            <span class="fa fa-trash-o"></span>
                                            <span class="bianji">删除<span class="arrowdown"></span>
                                            </span>
                                        </a>
                                    </div>
                                </div>
                            </li>
                            <li>
                                <div class="form-group tcate">
                                    <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                                    <div>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-plus"></span>
                                            <span class="bianji">添加<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-pencil"></span>
                                            <span class="bianji">编辑<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                            <span class="fa fa-trash-o"></span>
                                            <span class="bianji">删除<span class="arrowdown"></span>
                                            </span>
                                        </a>
                                    </div>
                                </div>
                            </li>
                        </ol>
                    </li>
                    <li>
                        <div class="form-group tcate">
                            <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                            <div>
                                <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                    <span class="fa fa-plus"></span>
                                    <span class="bianji">添加<span class="arrowdown"></span>
                                    </span>
                                
                                </a>
                                <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                    <span class="fa fa-pencil"></span>
                                    <span class="bianji">编辑<span class="arrowdown"></span>
                                    </span>
                                
                                </a>
                                <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                    <span class="fa fa-trash-o"></span>
                                    <span class="bianji">删除<span class="arrowdown"></span>
                                    </span>
                                </a>
                            </div>
                        </div>

                        <ol>
                            <li>
                                <div class="form-group tcate">
                                    <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                                    <div>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-plus"></span>
                                            <span class="bianji">添加<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-pencil"></span>
                                            <span class="bianji">编辑<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                            <span class="fa fa-trash-o"></span>
                                            <span class="bianji">删除<span class="arrowdown"></span>
                                            </span>
                                        </a>
                                    </div>
                                </div>
                            </li>
                            <li>
                                <div class="form-group tcate">
                                    <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                                    <div>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-plus"></span>
                                            <span class="bianji">添加<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-pencil"></span>
                                            <span class="bianji">编辑<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                            <span class="fa fa-trash-o"></span>
                                            <span class="bianji">删除<span class="arrowdown"></span>
                                            </span>
                                        </a>
                                    </div>
                                </div>
                            </li>
                            <li>
                                <div class="form-group tcate">
                                    <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                                    <div>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-plus"></span>
                                            <span class="bianji">添加<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-pencil"></span>
                                            <span class="bianji">编辑<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                            <span class="fa fa-trash-o"></span>
                                            <span class="bianji">删除<span class="arrowdown"></span>
                                            </span>
                                        </a>
                                    </div>
                                </div>
                            </li>
                        </ol>
                    </li>
                    <li>
                        <div class="form-group tcate">
                            <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                            <div>
                                <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                    <span class="fa fa-plus"></span>
                                    <span class="bianji">添加<span class="arrowdown"></span>
                                    </span>
                                
                                </a>
                                <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                    <span class="fa fa-pencil"></span>
                                    <span class="bianji">编辑<span class="arrowdown"></span>
                                    </span>
                                
                                </a>
                                <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                    <span class="fa fa-trash-o"></span>
                                    <span class="bianji">删除<span class="arrowdown"></span>
                                    </span>
                                </a>
                            </div>
                        </div>

                        <ol>
                            <li>
                                <div class="form-group tcate">
                                    <div><div><span class="minus">-</span><span class="plus">+</span></div><img src="http://k2.jsqq.net/uploads/allimg/1706/7_170605151250_1.jpg"><h6>一级</h6></div>
                                    <div>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-plus"></span>
                                            <span class="bianji">添加<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="{php echo $this->createWebUrl('xxxxxxx', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                            <span class="fa fa-pencil"></span>
                                            <span class="bianji">编辑<span class="arrowdown"></span>
                                            </span>
                                        
                                        </a>
                                        <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                                            <span class="fa fa-trash-o"></span>
                                            <span class="bianji">删除<span class="arrowdown"></span>
                                            </span>
                                        </a>
                                    </div>
                                </div>
                            </li>
                        </ol>
                    </li>
                </ol> -->
            </div>
        </div>
</div>
<script type="text/javascript">
    $(function(){
        // $("#frame-14").addClass("in");
        $("#frame-1").show();
        $("#yframe-1").addClass("wyactive");
        $(".minus").click(function(){
            $(this).css("display","none");
            $(this).next().css("display","block");
            $(this).parents(".tcate").siblings().children("li").hide();
        });
        $(".plus").click(function(){
            $(this).css("display","none");
            $(this).prev().css("display","block");
            $(".minuslast").css("display","none");
            $(this).parents(".tcate").siblings().children("li").show();
        });
        $(".fa-angle-up").click(function(){
            $(this).css("display","none");
            $(this).next().css("display","block");

            $(".minus").css("display","none");
            $(".minus").next().css("display","block");
            $(".minus").parents(".tcate").siblings().children("li").hide();
        });
        $(".fa-angle-down").click(function(){
            $(this).css("display","none");
            $(this).prev().css("display","block");

            $(".plus").css("display","none");
            $(".plus").prev().css("display","block");
            $(".minuslast").css("display","none");
            $(".plus").parents(".tcate").siblings().children("li").show();
        });
    })
</script>